package com.example.aircraftticketingsystemserver.mapper;

import com.example.aircraftticketingsystemserver.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aircraftticketingsystemserver.entity.OrderDTO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxz
 * @since 2024-08-05
 */
public interface OrdersMapper extends BaseMapper<Order> {
    /**
     * 更新订单
     */
    void updateOrder(Order order);
    /**
     * 删除订单
     */
    void deleteOrderByOrderId(Integer orderId);

    /**
     * 添加订单
     */
    void addOrder(Order order);

    List<OrderDTO>findOrderDetailsByUserId(Integer userId);

}
